<?php
require_once 'top/TopClient.php';
require_once 'top/RequestCheckUtil.php';
require_once 'top/request/TradeFullinfoGetRequest.php';

$secretKey = trim($_POST['secretKey']);
$appkey = trim($_POST['appkey']);
$sessionKey = trim($_POST['sessionKey']);
$tid = trim($_POST['tid']);
if ($tid) {
	$c = new TopClient;
	$c->appkey = $appkey;
	$c->secretKey = $secretKey;
	$req = new TradeFullinfoGetRequest;
	$req->setFields("orders.status,orders.total_fee,post_fee");
	$req->setTid($tid);
	$resp = $c->execute($req, $sessionKey);
	echo($resp);
}
exit;